From 6163a9386636904b95cd25e354b0c7220d3c72a7 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Fri, 3 Aug 2012 09:54:04 +0100 Subject: [PATCH] arm: fix gic_init_secondary_cpu. Using spin_lock_irq here is unnecessary (interrupts are not yet enabled) and wrong (since they will get unexpectedly renabled by spin_unlock_irq). We can just use spin_lock/spin_unlock. Signed-off-by: Ian Campbell Acked-by: Tim Deegan Committed-by: Ian Campbell --- xen/arch/arm/gic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c index 378158beb4..6f5b0e1b16 100644 --- a/xen/arch/arm/gic.c +++ b/xen/arch/arm/gic.c @@ -323,10 +323,10 @@ int __init gic_init(void) /* Set up the per-CPU parts of the GIC for a secondary CPU */ void __cpuinit gic_init_secondary_cpu(void) { - spin_lock_irq(&gic.lock); + spin_lock(&gic.lock); gic_cpu_init(); gic_hyp_init(); - spin_unlock_irq(&gic.lock); + spin_unlock(&gic.lock); } /* Shut down the per-CPU GIC interface */ -- 2.30.2